package view;

import javax.swing.JPanel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.Font;
import java.awt.Color;
import javax.swing.SwingConstants;
import javax.swing.JSeparator;
import javax.swing.JButton;
import javax.swing.LayoutStyle.ComponentPlacement;

import cliente.ClienteImp;

public class PaEmpresaDeTransporteModificar extends JPanel {
	private static final long serialVersionUID = 1L;
	private JTextField txtCuit;
	private JTextField textField_1;

	/**
	 * Create the panel.
	 * @param cliente 
	 */
	public PaEmpresaDeTransporteModificar(ClienteImp cliente) {
		
		JLabel lblCuit = new JLabel("Cuit");
		
		txtCuit = new JTextField();
		txtCuit.setColumns(10);
		
		JLabel lblModificarDeEmpresa = new JLabel("Modificar de Empresa de Transporte");
		lblModificarDeEmpresa.setHorizontalAlignment(SwingConstants.LEFT);
		lblModificarDeEmpresa.setForeground(Color.BLUE);
		lblModificarDeEmpresa.setFont(new Font("Sylfaen", Font.BOLD | Font.ITALIC, 18));
		
		JSeparator separator = new JSeparator();
		
		JButton btnModificarEmpresaDe = new JButton("Modificar Empresa de transporte");
		
		JButton btCancelar = new JButton("Cancelar");
		
		JLabel lblNombre = new JLabel("Nombre");
		
		textField_1 = new JTextField();
		textField_1.setEditable(false);
		textField_1.setEnabled(false);
		textField_1.setColumns(10);
		
		JButton btnBuscar = new JButton("Buscar");
		GroupLayout groupLayout = new GroupLayout(this);
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addContainerGap()
							.addComponent(lblModificarDeEmpresa)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(btnModificarEmpresaDe, GroupLayout.PREFERRED_SIZE, 256, GroupLayout.PREFERRED_SIZE)
							.addGap(6)
							.addComponent(btCancelar, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
						.addComponent(separator, GroupLayout.PREFERRED_SIZE, 618, GroupLayout.PREFERRED_SIZE)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(10)
							.addComponent(lblCuit, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE)
							.addGap(4)
							.addComponent(txtCuit, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
							.addGap(18)
							.addComponent(btnBuscar))
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(10)
							.addComponent(lblNombre, GroupLayout.PREFERRED_SIZE, 37, GroupLayout.PREFERRED_SIZE)
							.addGap(4)
							.addComponent(textField_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
					.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(0)
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addComponent(btnModificarEmpresaDe)
						.addComponent(btCancelar)
						.addComponent(lblModificarDeEmpresa, GroupLayout.PREFERRED_SIZE, 24, GroupLayout.PREFERRED_SIZE))
					.addGap(11)
					.addComponent(separator, GroupLayout.PREFERRED_SIZE, 1, GroupLayout.PREFERRED_SIZE)
					.addGap(11)
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(3)
							.addComponent(lblCuit))
						.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
							.addComponent(txtCuit, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
							.addComponent(btnBuscar)))
					.addGap(6)
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(3)
							.addComponent(lblNombre))
						.addComponent(textField_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addContainerGap(196, Short.MAX_VALUE))
		);
		setLayout(groupLayout);

	}

}
